From 235f16a15dd2e3dc7f422e6505260e685fad7a3a Mon Sep 17 00:00:00 2001 From: Matthew Daley Date: Wed, 30 Oct 2013 20:51:55 +1300 Subject: [PATCH] xl: libxl_list_vm returns a pointer, not a handle Coverity-ID: 1054978 Signed-off-by: Matthew Daley Reviewed-by: Andrew Cooper Acked-by: Ian Campbell --- tools/libxl/xl_cmdimpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index fddaa80dd8..43d15190e2 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -3247,7 +3247,7 @@ static void list_vm(void) info = libxl_list_vm(ctx, &nb_vm); - if (info < 0) { + if (!info) { fprintf(stderr, "libxl_domain_infolist failed.\n"); exit(1); } -- 2.30.2